package com.cxcy.swustlearner.mapper;

import com.cxcy.swustlearner.pojo.College;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CollegeMapper {
    @Select("select * from college")
    List<College> GetCollege();
    @Insert("insert into college (college_name,college_id, update_time, create_time) VALUES (#{collegeName},#{collegeId},NOW(),NOW())")
    void InsertCollege(College college);
}
